package com.pig4cloud.pig.propertyroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.propertyroom.entity.PropertyRoom;
import com.pig4cloud.pig.resident.feign.entity.Resident;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface RoomMapper extends BaseMapper<PropertyRoom> {
	PropertyRoom getByFloorIdAndRoomNumber(@Param("floorId") Long floorId, @Param("roomNumber") String roomNumber);

	Resident[] selectResidentByRoomId(Long[] roomId);

	PropertyRoom checkRoomByNumber(PropertyRoom roomEntity);

	PropertyRoom getByRoomId(Long roomId);

}
